
/**
 * This is a generated class and is not intended for modification.  
 */
package com.model.valueObjects
{
import com.adobe.fiber.styles.IStyle;
import com.adobe.fiber.styles.Style;
import com.adobe.fiber.styles.StyleValidator;
import com.adobe.fiber.valueobjects.AbstractEntityMetadata;
import com.adobe.fiber.valueobjects.AvailablePropertyIterator;
import com.adobe.fiber.valueobjects.IPropertyIterator;
import mx.events.ValidationResultEvent;
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.valueobjects.IModelType;
import mx.events.PropertyChangeEvent;

use namespace model_internal;

[ExcludeClass]
internal class _VoDeliveryOrderEntityMetadata extends com.adobe.fiber.valueobjects.AbstractEntityMetadata
{
    private static var emptyArray:Array = new Array();

    model_internal static var allProperties:Array = new Array("pro_name", "total_qty", "is_invoiced", "cre_userid_fk", "part_number", "serialnumber", "delivery_order_date", "pro_description", "do_remarks", "sc_detserialnumber_fk", "activestatus", "client_name", "po_detserialnumber", "cre_datetime", "sc_qty", "sc_serialnumber", "pro_serialnumber_fk", "delivered_qty", "reserved_qty", "delivery_order_code", "do_detserialnumber", "sales_con_code", "customer_serialnumber_fk", "delivery_order_fk", "warehouse_serialnumber_fk");
    model_internal static var allAssociationProperties:Array = new Array();
    model_internal static var allRequiredProperties:Array = new Array("pro_name", "total_qty", "is_invoiced", "cre_userid_fk", "part_number", "serialnumber", "delivery_order_date", "pro_description", "do_remarks", "sc_detserialnumber_fk", "activestatus", "client_name", "po_detserialnumber", "cre_datetime", "sc_qty", "sc_serialnumber", "pro_serialnumber_fk", "delivered_qty", "reserved_qty", "delivery_order_code", "do_detserialnumber", "sales_con_code", "customer_serialnumber_fk", "delivery_order_fk", "warehouse_serialnumber_fk");
    model_internal static var allAlwaysAvailableProperties:Array = new Array("pro_name", "total_qty", "is_invoiced", "cre_userid_fk", "part_number", "serialnumber", "delivery_order_date", "pro_description", "do_remarks", "sc_detserialnumber_fk", "activestatus", "client_name", "po_detserialnumber", "cre_datetime", "sc_qty", "sc_serialnumber", "pro_serialnumber_fk", "delivered_qty", "reserved_qty", "delivery_order_code", "do_detserialnumber", "sales_con_code", "customer_serialnumber_fk", "delivery_order_fk", "warehouse_serialnumber_fk");
    model_internal static var guardedProperties:Array = new Array();
    model_internal static var dataProperties:Array = new Array("pro_name", "total_qty", "is_invoiced", "cre_userid_fk", "part_number", "serialnumber", "delivery_order_date", "pro_description", "do_remarks", "sc_detserialnumber_fk", "activestatus", "client_name", "po_detserialnumber", "cre_datetime", "sc_qty", "sc_serialnumber", "pro_serialnumber_fk", "delivered_qty", "reserved_qty", "delivery_order_code", "do_detserialnumber", "sales_con_code", "customer_serialnumber_fk", "delivery_order_fk", "warehouse_serialnumber_fk");
    model_internal static var derivedProperties:Array = new Array();
    model_internal static var collectionProperties:Array = new Array("pro_name", "part_number", "pro_description", "sc_detserialnumber_fk", "po_detserialnumber", "sc_qty", "sc_serialnumber", "pro_serialnumber_fk", "delivered_qty", "reserved_qty", "do_detserialnumber", "sales_con_code", "delivery_order_fk", "warehouse_serialnumber_fk");
    model_internal static var collectionBaseMap:Object;
    model_internal static var entityName:String = "VoDeliveryOrder";
    model_internal static var dependentsOnMap:Object;
    model_internal static var dependedOnServices:Array = new Array();

    
    model_internal var _pro_nameIsValid:Boolean;
    model_internal var _pro_nameValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_nameIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_nameValidationFailureMessages:Array;
    
    model_internal var _part_numberIsValid:Boolean;
    model_internal var _part_numberValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _part_numberIsValidCacheInitialized:Boolean = false;
    model_internal var _part_numberValidationFailureMessages:Array;
    
    model_internal var _delivery_order_dateIsValid:Boolean;
    model_internal var _delivery_order_dateValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _delivery_order_dateIsValidCacheInitialized:Boolean = false;
    model_internal var _delivery_order_dateValidationFailureMessages:Array;
    
    model_internal var _pro_descriptionIsValid:Boolean;
    model_internal var _pro_descriptionValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_descriptionIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_descriptionValidationFailureMessages:Array;
    
    model_internal var _do_remarksIsValid:Boolean;
    model_internal var _do_remarksValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _do_remarksIsValidCacheInitialized:Boolean = false;
    model_internal var _do_remarksValidationFailureMessages:Array;
    
    model_internal var _sc_detserialnumber_fkIsValid:Boolean;
    model_internal var _sc_detserialnumber_fkValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _sc_detserialnumber_fkIsValidCacheInitialized:Boolean = false;
    model_internal var _sc_detserialnumber_fkValidationFailureMessages:Array;
    
    model_internal var _client_nameIsValid:Boolean;
    model_internal var _client_nameValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _client_nameIsValidCacheInitialized:Boolean = false;
    model_internal var _client_nameValidationFailureMessages:Array;
    
    model_internal var _po_detserialnumberIsValid:Boolean;
    model_internal var _po_detserialnumberValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _po_detserialnumberIsValidCacheInitialized:Boolean = false;
    model_internal var _po_detserialnumberValidationFailureMessages:Array;
    
    model_internal var _cre_datetimeIsValid:Boolean;
    model_internal var _cre_datetimeValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _cre_datetimeIsValidCacheInitialized:Boolean = false;
    model_internal var _cre_datetimeValidationFailureMessages:Array;
    
    model_internal var _sc_qtyIsValid:Boolean;
    model_internal var _sc_qtyValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _sc_qtyIsValidCacheInitialized:Boolean = false;
    model_internal var _sc_qtyValidationFailureMessages:Array;
    
    model_internal var _sc_serialnumberIsValid:Boolean;
    model_internal var _sc_serialnumberValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _sc_serialnumberIsValidCacheInitialized:Boolean = false;
    model_internal var _sc_serialnumberValidationFailureMessages:Array;
    
    model_internal var _pro_serialnumber_fkIsValid:Boolean;
    model_internal var _pro_serialnumber_fkValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_serialnumber_fkIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_serialnumber_fkValidationFailureMessages:Array;
    
    model_internal var _delivered_qtyIsValid:Boolean;
    model_internal var _delivered_qtyValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _delivered_qtyIsValidCacheInitialized:Boolean = false;
    model_internal var _delivered_qtyValidationFailureMessages:Array;
    
    model_internal var _reserved_qtyIsValid:Boolean;
    model_internal var _reserved_qtyValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _reserved_qtyIsValidCacheInitialized:Boolean = false;
    model_internal var _reserved_qtyValidationFailureMessages:Array;
    
    model_internal var _delivery_order_codeIsValid:Boolean;
    model_internal var _delivery_order_codeValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _delivery_order_codeIsValidCacheInitialized:Boolean = false;
    model_internal var _delivery_order_codeValidationFailureMessages:Array;
    
    model_internal var _do_detserialnumberIsValid:Boolean;
    model_internal var _do_detserialnumberValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _do_detserialnumberIsValidCacheInitialized:Boolean = false;
    model_internal var _do_detserialnumberValidationFailureMessages:Array;
    
    model_internal var _sales_con_codeIsValid:Boolean;
    model_internal var _sales_con_codeValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _sales_con_codeIsValidCacheInitialized:Boolean = false;
    model_internal var _sales_con_codeValidationFailureMessages:Array;
    
    model_internal var _delivery_order_fkIsValid:Boolean;
    model_internal var _delivery_order_fkValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _delivery_order_fkIsValidCacheInitialized:Boolean = false;
    model_internal var _delivery_order_fkValidationFailureMessages:Array;
    
    model_internal var _warehouse_serialnumber_fkIsValid:Boolean;
    model_internal var _warehouse_serialnumber_fkValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _warehouse_serialnumber_fkIsValidCacheInitialized:Boolean = false;
    model_internal var _warehouse_serialnumber_fkValidationFailureMessages:Array;

    model_internal var _instance:_Super_VoDeliveryOrder;
    model_internal static var _nullStyle:com.adobe.fiber.styles.Style = new com.adobe.fiber.styles.Style();

    public function _VoDeliveryOrderEntityMetadata(value : _Super_VoDeliveryOrder)
    {
        // initialize property maps
        if (model_internal::dependentsOnMap == null)
        {
            // depenents map
            model_internal::dependentsOnMap = new Object();
            model_internal::dependentsOnMap["pro_name"] = new Array();
            model_internal::dependentsOnMap["total_qty"] = new Array();
            model_internal::dependentsOnMap["is_invoiced"] = new Array();
            model_internal::dependentsOnMap["cre_userid_fk"] = new Array();
            model_internal::dependentsOnMap["part_number"] = new Array();
            model_internal::dependentsOnMap["serialnumber"] = new Array();
            model_internal::dependentsOnMap["delivery_order_date"] = new Array();
            model_internal::dependentsOnMap["pro_description"] = new Array();
            model_internal::dependentsOnMap["do_remarks"] = new Array();
            model_internal::dependentsOnMap["sc_detserialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["activestatus"] = new Array();
            model_internal::dependentsOnMap["client_name"] = new Array();
            model_internal::dependentsOnMap["po_detserialnumber"] = new Array();
            model_internal::dependentsOnMap["cre_datetime"] = new Array();
            model_internal::dependentsOnMap["sc_qty"] = new Array();
            model_internal::dependentsOnMap["sc_serialnumber"] = new Array();
            model_internal::dependentsOnMap["pro_serialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["delivered_qty"] = new Array();
            model_internal::dependentsOnMap["reserved_qty"] = new Array();
            model_internal::dependentsOnMap["delivery_order_code"] = new Array();
            model_internal::dependentsOnMap["do_detserialnumber"] = new Array();
            model_internal::dependentsOnMap["sales_con_code"] = new Array();
            model_internal::dependentsOnMap["customer_serialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["delivery_order_fk"] = new Array();
            model_internal::dependentsOnMap["warehouse_serialnumber_fk"] = new Array();

            // collection base map
            model_internal::collectionBaseMap = new Object()
            model_internal::collectionBaseMap["pro_name"] = "String";
            model_internal::collectionBaseMap["part_number"] = "String";
            model_internal::collectionBaseMap["pro_description"] = "String";
            model_internal::collectionBaseMap["sc_detserialnumber_fk"] = "int";
            model_internal::collectionBaseMap["po_detserialnumber"] = "Object";
            model_internal::collectionBaseMap["sc_qty"] = "Number";
            model_internal::collectionBaseMap["sc_serialnumber"] = "int";
            model_internal::collectionBaseMap["pro_serialnumber_fk"] = "int";
            model_internal::collectionBaseMap["delivered_qty"] = "int";
            model_internal::collectionBaseMap["reserved_qty"] = "int";
            model_internal::collectionBaseMap["do_detserialnumber"] = "int";
            model_internal::collectionBaseMap["sales_con_code"] = "String";
            model_internal::collectionBaseMap["delivery_order_fk"] = "int";
            model_internal::collectionBaseMap["warehouse_serialnumber_fk"] = "int";
        }

        model_internal::_instance = value;
        model_internal::_pro_nameValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_name);
        model_internal::_pro_nameValidator.required = true;
        model_internal::_pro_nameValidator.requiredFieldError = "pro_name is required";
        //model_internal::_pro_nameValidator.source = model_internal::_instance;
        //model_internal::_pro_nameValidator.property = "pro_name";
        model_internal::_part_numberValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPart_number);
        model_internal::_part_numberValidator.required = true;
        model_internal::_part_numberValidator.requiredFieldError = "part_number is required";
        //model_internal::_part_numberValidator.source = model_internal::_instance;
        //model_internal::_part_numberValidator.property = "part_number";
        model_internal::_delivery_order_dateValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForDelivery_order_date);
        model_internal::_delivery_order_dateValidator.required = true;
        model_internal::_delivery_order_dateValidator.requiredFieldError = "delivery_order_date is required";
        //model_internal::_delivery_order_dateValidator.source = model_internal::_instance;
        //model_internal::_delivery_order_dateValidator.property = "delivery_order_date";
        model_internal::_pro_descriptionValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_description);
        model_internal::_pro_descriptionValidator.required = true;
        model_internal::_pro_descriptionValidator.requiredFieldError = "pro_description is required";
        //model_internal::_pro_descriptionValidator.source = model_internal::_instance;
        //model_internal::_pro_descriptionValidator.property = "pro_description";
        model_internal::_do_remarksValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForDo_remarks);
        model_internal::_do_remarksValidator.required = true;
        model_internal::_do_remarksValidator.requiredFieldError = "do_remarks is required";
        //model_internal::_do_remarksValidator.source = model_internal::_instance;
        //model_internal::_do_remarksValidator.property = "do_remarks";
        model_internal::_sc_detserialnumber_fkValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForSc_detserialnumber_fk);
        model_internal::_sc_detserialnumber_fkValidator.required = true;
        model_internal::_sc_detserialnumber_fkValidator.requiredFieldError = "sc_detserialnumber_fk is required";
        //model_internal::_sc_detserialnumber_fkValidator.source = model_internal::_instance;
        //model_internal::_sc_detserialnumber_fkValidator.property = "sc_detserialnumber_fk";
        model_internal::_client_nameValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForClient_name);
        model_internal::_client_nameValidator.required = true;
        model_internal::_client_nameValidator.requiredFieldError = "client_name is required";
        //model_internal::_client_nameValidator.source = model_internal::_instance;
        //model_internal::_client_nameValidator.property = "client_name";
        model_internal::_po_detserialnumberValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPo_detserialnumber);
        model_internal::_po_detserialnumberValidator.required = true;
        model_internal::_po_detserialnumberValidator.requiredFieldError = "po_detserialnumber is required";
        //model_internal::_po_detserialnumberValidator.source = model_internal::_instance;
        //model_internal::_po_detserialnumberValidator.property = "po_detserialnumber";
        model_internal::_cre_datetimeValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForCre_datetime);
        model_internal::_cre_datetimeValidator.required = true;
        model_internal::_cre_datetimeValidator.requiredFieldError = "cre_datetime is required";
        //model_internal::_cre_datetimeValidator.source = model_internal::_instance;
        //model_internal::_cre_datetimeValidator.property = "cre_datetime";
        model_internal::_sc_qtyValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForSc_qty);
        model_internal::_sc_qtyValidator.required = true;
        model_internal::_sc_qtyValidator.requiredFieldError = "sc_qty is required";
        //model_internal::_sc_qtyValidator.source = model_internal::_instance;
        //model_internal::_sc_qtyValidator.property = "sc_qty";
        model_internal::_sc_serialnumberValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForSc_serialnumber);
        model_internal::_sc_serialnumberValidator.required = true;
        model_internal::_sc_serialnumberValidator.requiredFieldError = "sc_serialnumber is required";
        //model_internal::_sc_serialnumberValidator.source = model_internal::_instance;
        //model_internal::_sc_serialnumberValidator.property = "sc_serialnumber";
        model_internal::_pro_serialnumber_fkValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_serialnumber_fk);
        model_internal::_pro_serialnumber_fkValidator.required = true;
        model_internal::_pro_serialnumber_fkValidator.requiredFieldError = "pro_serialnumber_fk is required";
        //model_internal::_pro_serialnumber_fkValidator.source = model_internal::_instance;
        //model_internal::_pro_serialnumber_fkValidator.property = "pro_serialnumber_fk";
        model_internal::_delivered_qtyValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForDelivered_qty);
        model_internal::_delivered_qtyValidator.required = true;
        model_internal::_delivered_qtyValidator.requiredFieldError = "delivered_qty is required";
        //model_internal::_delivered_qtyValidator.source = model_internal::_instance;
        //model_internal::_delivered_qtyValidator.property = "delivered_qty";
        model_internal::_reserved_qtyValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForReserved_qty);
        model_internal::_reserved_qtyValidator.required = true;
        model_internal::_reserved_qtyValidator.requiredFieldError = "reserved_qty is required";
        //model_internal::_reserved_qtyValidator.source = model_internal::_instance;
        //model_internal::_reserved_qtyValidator.property = "reserved_qty";
        model_internal::_delivery_order_codeValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForDelivery_order_code);
        model_internal::_delivery_order_codeValidator.required = true;
        model_internal::_delivery_order_codeValidator.requiredFieldError = "delivery_order_code is required";
        //model_internal::_delivery_order_codeValidator.source = model_internal::_instance;
        //model_internal::_delivery_order_codeValidator.property = "delivery_order_code";
        model_internal::_do_detserialnumberValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForDo_detserialnumber);
        model_internal::_do_detserialnumberValidator.required = true;
        model_internal::_do_detserialnumberValidator.requiredFieldError = "do_detserialnumber is required";
        //model_internal::_do_detserialnumberValidator.source = model_internal::_instance;
        //model_internal::_do_detserialnumberValidator.property = "do_detserialnumber";
        model_internal::_sales_con_codeValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForSales_con_code);
        model_internal::_sales_con_codeValidator.required = true;
        model_internal::_sales_con_codeValidator.requiredFieldError = "sales_con_code is required";
        //model_internal::_sales_con_codeValidator.source = model_internal::_instance;
        //model_internal::_sales_con_codeValidator.property = "sales_con_code";
        model_internal::_delivery_order_fkValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForDelivery_order_fk);
        model_internal::_delivery_order_fkValidator.required = true;
        model_internal::_delivery_order_fkValidator.requiredFieldError = "delivery_order_fk is required";
        //model_internal::_delivery_order_fkValidator.source = model_internal::_instance;
        //model_internal::_delivery_order_fkValidator.property = "delivery_order_fk";
        model_internal::_warehouse_serialnumber_fkValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForWarehouse_serialnumber_fk);
        model_internal::_warehouse_serialnumber_fkValidator.required = true;
        model_internal::_warehouse_serialnumber_fkValidator.requiredFieldError = "warehouse_serialnumber_fk is required";
        //model_internal::_warehouse_serialnumber_fkValidator.source = model_internal::_instance;
        //model_internal::_warehouse_serialnumber_fkValidator.property = "warehouse_serialnumber_fk";
    }

    override public function getEntityName():String
    {
        return model_internal::entityName;
    }

    override public function getProperties():Array
    {
        return model_internal::allProperties;
    }

    override public function getAssociationProperties():Array
    {
        return model_internal::allAssociationProperties;
    }

    override public function getRequiredProperties():Array
    {
         return model_internal::allRequiredProperties;   
    }

    override public function getDataProperties():Array
    {
        return model_internal::dataProperties;
    }

    override public function getGuardedProperties():Array
    {
        return model_internal::guardedProperties;
    }

    override public function getUnguardedProperties():Array
    {
        return model_internal::allAlwaysAvailableProperties;
    }

    override public function getDependants(propertyName:String):Array
    {
       if (model_internal::dataProperties.indexOf(propertyName) == -1)
            throw new Error(propertyName + " is not a data property of entity VoDeliveryOrder");  
            
       return model_internal::dependentsOnMap[propertyName] as Array;  
    }

    override public function getDependedOnServices():Array
    {
        return model_internal::dependedOnServices;
    }

    override public function getCollectionProperties():Array
    {
        return model_internal::collectionProperties;
    }

    override public function getCollectionBase(propertyName:String):String
    {
        if (model_internal::collectionProperties.indexOf(propertyName) == -1)
            throw new Error(propertyName + " is not a collection property of entity VoDeliveryOrder");  

        return model_internal::collectionBaseMap[propertyName];
    }

    override public function getAvailableProperties():com.adobe.fiber.valueobjects.IPropertyIterator
    {
        return new com.adobe.fiber.valueobjects.AvailablePropertyIterator(this);
    }

    override public function getValue(propertyName:String):*
    {
        if (model_internal::allProperties.indexOf(propertyName) == -1)
        {
            throw new Error(propertyName + " does not exist for entity VoDeliveryOrder");
        }

        return model_internal::_instance[propertyName];
    }

    override public function setValue(propertyName:String, value:*):void
    {
        if (model_internal::dataProperties.indexOf(propertyName) == -1)
        {
            throw new Error(propertyName + " is not a data property of entity VoDeliveryOrder");
        }

        model_internal::_instance[propertyName] = value;
    }

    override public function getMappedByProperty(associationProperty:String):String
    {
        switch(associationProperty)
        {
            default:
            {
                return null;
            }
        }
    }

    override public function getPropertyLength(propertyName:String):int
    {
        switch(propertyName)
        {
            default:
            {
                return 0;
            }
        }
    }

    override public function isAvailable(propertyName:String):Boolean
    {
        if (model_internal::allProperties.indexOf(propertyName) == -1)
        {
            throw new Error(propertyName + " does not exist for entity VoDeliveryOrder");
        }

        if (model_internal::allAlwaysAvailableProperties.indexOf(propertyName) != -1)
        {
            return true;
        }

        switch(propertyName)
        {
            default:
            {
                return true;
            }
        }
    }

    override public function getIdentityMap():Object
    {
        var returnMap:Object = new Object();

        return returnMap;
    }

    [Bindable(event="propertyChange")]
    override public function get invalidConstraints():Array
    {
        if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
        {
            return model_internal::_instance.model_internal::_invalidConstraints;
        }
        else
        {
            // recalculate isValid
            model_internal::_instance.model_internal::_isValid = model_internal::_instance.model_internal::calculateIsValid();
            return model_internal::_instance.model_internal::_invalidConstraints;        
        }
    }

    [Bindable(event="propertyChange")]
    override public function get validationFailureMessages():Array
    {
        if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
        {
            return model_internal::_instance.model_internal::_validationFailureMessages;
        }
        else
        {
            // recalculate isValid
            model_internal::_instance.model_internal::_isValid = model_internal::_instance.model_internal::calculateIsValid();
            return model_internal::_instance.model_internal::_validationFailureMessages;
        }
    }

    override public function getDependantInvalidConstraints(propertyName:String):Array
    {
        var dependants:Array = getDependants(propertyName);
        if (dependants.length == 0)
        {
            return emptyArray;
        }

        var currentlyInvalid:Array = invalidConstraints;
        if (currentlyInvalid.length == 0)
        {
            return emptyArray;
        }

        var filterFunc:Function = function(element:*, index:int, arr:Array):Boolean
        {
            return dependants.indexOf(element) > -1;
        }

        return currentlyInvalid.filter(filterFunc);
    }

    /**
     * isValid
     */
    [Bindable(event="propertyChange")] 
    public function get isValid() : Boolean
    {
        if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
        {
            return model_internal::_instance.model_internal::_isValid;
        }
        else
        {
            // recalculate isValid
            model_internal::_instance.model_internal::_isValid = model_internal::_instance.model_internal::calculateIsValid();
            return model_internal::_instance.model_internal::_isValid;
        }
    }

    [Bindable(event="propertyChange")]
    public function get isPro_nameAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isTotal_qtyAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isIs_invoicedAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCre_userid_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPart_numberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSerialnumberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isDelivery_order_dateAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_descriptionAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isDo_remarksAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSc_detserialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isActivestatusAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isClient_nameAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPo_detserialnumberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCre_datetimeAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSc_qtyAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSc_serialnumberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_serialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isDelivered_qtyAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isReserved_qtyAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isDelivery_order_codeAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isDo_detserialnumberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSales_con_codeAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCustomer_serialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isDelivery_order_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isWarehouse_serialnumber_fkAvailable():Boolean
    {
        return true;
    }


    /**
     * derived property recalculation
     */
    public function invalidateDependentOnPro_name():void
    {
        if (model_internal::_pro_nameIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_name = null;
            model_internal::calculatePro_nameIsValid();
        }
    }
    public function invalidateDependentOnPart_number():void
    {
        if (model_internal::_part_numberIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPart_number = null;
            model_internal::calculatePart_numberIsValid();
        }
    }
    public function invalidateDependentOnDelivery_order_date():void
    {
        if (model_internal::_delivery_order_dateIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfDelivery_order_date = null;
            model_internal::calculateDelivery_order_dateIsValid();
        }
    }
    public function invalidateDependentOnPro_description():void
    {
        if (model_internal::_pro_descriptionIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_description = null;
            model_internal::calculatePro_descriptionIsValid();
        }
    }
    public function invalidateDependentOnDo_remarks():void
    {
        if (model_internal::_do_remarksIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfDo_remarks = null;
            model_internal::calculateDo_remarksIsValid();
        }
    }
    public function invalidateDependentOnSc_detserialnumber_fk():void
    {
        if (model_internal::_sc_detserialnumber_fkIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfSc_detserialnumber_fk = null;
            model_internal::calculateSc_detserialnumber_fkIsValid();
        }
    }
    public function invalidateDependentOnClient_name():void
    {
        if (model_internal::_client_nameIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfClient_name = null;
            model_internal::calculateClient_nameIsValid();
        }
    }
    public function invalidateDependentOnPo_detserialnumber():void
    {
        if (model_internal::_po_detserialnumberIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPo_detserialnumber = null;
            model_internal::calculatePo_detserialnumberIsValid();
        }
    }
    public function invalidateDependentOnCre_datetime():void
    {
        if (model_internal::_cre_datetimeIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfCre_datetime = null;
            model_internal::calculateCre_datetimeIsValid();
        }
    }
    public function invalidateDependentOnSc_qty():void
    {
        if (model_internal::_sc_qtyIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfSc_qty = null;
            model_internal::calculateSc_qtyIsValid();
        }
    }
    public function invalidateDependentOnSc_serialnumber():void
    {
        if (model_internal::_sc_serialnumberIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfSc_serialnumber = null;
            model_internal::calculateSc_serialnumberIsValid();
        }
    }
    public function invalidateDependentOnPro_serialnumber_fk():void
    {
        if (model_internal::_pro_serialnumber_fkIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_serialnumber_fk = null;
            model_internal::calculatePro_serialnumber_fkIsValid();
        }
    }
    public function invalidateDependentOnDelivered_qty():void
    {
        if (model_internal::_delivered_qtyIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfDelivered_qty = null;
            model_internal::calculateDelivered_qtyIsValid();
        }
    }
    public function invalidateDependentOnReserved_qty():void
    {
        if (model_internal::_reserved_qtyIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfReserved_qty = null;
            model_internal::calculateReserved_qtyIsValid();
        }
    }
    public function invalidateDependentOnDelivery_order_code():void
    {
        if (model_internal::_delivery_order_codeIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfDelivery_order_code = null;
            model_internal::calculateDelivery_order_codeIsValid();
        }
    }
    public function invalidateDependentOnDo_detserialnumber():void
    {
        if (model_internal::_do_detserialnumberIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfDo_detserialnumber = null;
            model_internal::calculateDo_detserialnumberIsValid();
        }
    }
    public function invalidateDependentOnSales_con_code():void
    {
        if (model_internal::_sales_con_codeIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfSales_con_code = null;
            model_internal::calculateSales_con_codeIsValid();
        }
    }
    public function invalidateDependentOnDelivery_order_fk():void
    {
        if (model_internal::_delivery_order_fkIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfDelivery_order_fk = null;
            model_internal::calculateDelivery_order_fkIsValid();
        }
    }
    public function invalidateDependentOnWarehouse_serialnumber_fk():void
    {
        if (model_internal::_warehouse_serialnumber_fkIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfWarehouse_serialnumber_fk = null;
            model_internal::calculateWarehouse_serialnumber_fkIsValid();
        }
    }

    model_internal function fireChangeEvent(propertyName:String, oldValue:Object, newValue:Object):void
    {
        this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, propertyName, oldValue, newValue));
    }

    [Bindable(event="propertyChange")]   
    public function get pro_nameStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_nameValidator() : StyleValidator
    {
        return model_internal::_pro_nameValidator;
    }

    model_internal function set _pro_nameIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_nameIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_nameIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_nameIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_nameIsValid():Boolean
    {
        if (!model_internal::_pro_nameIsValidCacheInitialized)
        {
            model_internal::calculatePro_nameIsValid();
        }

        return model_internal::_pro_nameIsValid;
    }

    model_internal function calculatePro_nameIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_nameValidator.validate(model_internal::_instance.pro_name)
        model_internal::_pro_nameIsValid_der = (valRes.results == null);
        model_internal::_pro_nameIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_nameValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_nameValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_nameValidationFailureMessages():Array
    {
        if (model_internal::_pro_nameValidationFailureMessages == null)
            model_internal::calculatePro_nameIsValid();

        return _pro_nameValidationFailureMessages;
    }

    model_internal function set pro_nameValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_nameValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_nameValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_nameValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get total_qtyStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get is_invoicedStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get cre_userid_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get part_numberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get part_numberValidator() : StyleValidator
    {
        return model_internal::_part_numberValidator;
    }

    model_internal function set _part_numberIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_part_numberIsValid;         
        if (oldValue !== value)
        {
            model_internal::_part_numberIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "part_numberIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get part_numberIsValid():Boolean
    {
        if (!model_internal::_part_numberIsValidCacheInitialized)
        {
            model_internal::calculatePart_numberIsValid();
        }

        return model_internal::_part_numberIsValid;
    }

    model_internal function calculatePart_numberIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_part_numberValidator.validate(model_internal::_instance.part_number)
        model_internal::_part_numberIsValid_der = (valRes.results == null);
        model_internal::_part_numberIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::part_numberValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::part_numberValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get part_numberValidationFailureMessages():Array
    {
        if (model_internal::_part_numberValidationFailureMessages == null)
            model_internal::calculatePart_numberIsValid();

        return _part_numberValidationFailureMessages;
    }

    model_internal function set part_numberValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_part_numberValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_part_numberValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "part_numberValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get serialnumberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get delivery_order_dateStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get delivery_order_dateValidator() : StyleValidator
    {
        return model_internal::_delivery_order_dateValidator;
    }

    model_internal function set _delivery_order_dateIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_delivery_order_dateIsValid;         
        if (oldValue !== value)
        {
            model_internal::_delivery_order_dateIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "delivery_order_dateIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get delivery_order_dateIsValid():Boolean
    {
        if (!model_internal::_delivery_order_dateIsValidCacheInitialized)
        {
            model_internal::calculateDelivery_order_dateIsValid();
        }

        return model_internal::_delivery_order_dateIsValid;
    }

    model_internal function calculateDelivery_order_dateIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_delivery_order_dateValidator.validate(model_internal::_instance.delivery_order_date)
        model_internal::_delivery_order_dateIsValid_der = (valRes.results == null);
        model_internal::_delivery_order_dateIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::delivery_order_dateValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::delivery_order_dateValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get delivery_order_dateValidationFailureMessages():Array
    {
        if (model_internal::_delivery_order_dateValidationFailureMessages == null)
            model_internal::calculateDelivery_order_dateIsValid();

        return _delivery_order_dateValidationFailureMessages;
    }

    model_internal function set delivery_order_dateValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_delivery_order_dateValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_delivery_order_dateValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "delivery_order_dateValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get pro_descriptionStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_descriptionValidator() : StyleValidator
    {
        return model_internal::_pro_descriptionValidator;
    }

    model_internal function set _pro_descriptionIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_descriptionIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_descriptionIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_descriptionIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_descriptionIsValid():Boolean
    {
        if (!model_internal::_pro_descriptionIsValidCacheInitialized)
        {
            model_internal::calculatePro_descriptionIsValid();
        }

        return model_internal::_pro_descriptionIsValid;
    }

    model_internal function calculatePro_descriptionIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_descriptionValidator.validate(model_internal::_instance.pro_description)
        model_internal::_pro_descriptionIsValid_der = (valRes.results == null);
        model_internal::_pro_descriptionIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_descriptionValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_descriptionValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_descriptionValidationFailureMessages():Array
    {
        if (model_internal::_pro_descriptionValidationFailureMessages == null)
            model_internal::calculatePro_descriptionIsValid();

        return _pro_descriptionValidationFailureMessages;
    }

    model_internal function set pro_descriptionValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_descriptionValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_descriptionValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_descriptionValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get do_remarksStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get do_remarksValidator() : StyleValidator
    {
        return model_internal::_do_remarksValidator;
    }

    model_internal function set _do_remarksIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_do_remarksIsValid;         
        if (oldValue !== value)
        {
            model_internal::_do_remarksIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "do_remarksIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get do_remarksIsValid():Boolean
    {
        if (!model_internal::_do_remarksIsValidCacheInitialized)
        {
            model_internal::calculateDo_remarksIsValid();
        }

        return model_internal::_do_remarksIsValid;
    }

    model_internal function calculateDo_remarksIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_do_remarksValidator.validate(model_internal::_instance.do_remarks)
        model_internal::_do_remarksIsValid_der = (valRes.results == null);
        model_internal::_do_remarksIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::do_remarksValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::do_remarksValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get do_remarksValidationFailureMessages():Array
    {
        if (model_internal::_do_remarksValidationFailureMessages == null)
            model_internal::calculateDo_remarksIsValid();

        return _do_remarksValidationFailureMessages;
    }

    model_internal function set do_remarksValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_do_remarksValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_do_remarksValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "do_remarksValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get sc_detserialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get sc_detserialnumber_fkValidator() : StyleValidator
    {
        return model_internal::_sc_detserialnumber_fkValidator;
    }

    model_internal function set _sc_detserialnumber_fkIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_sc_detserialnumber_fkIsValid;         
        if (oldValue !== value)
        {
            model_internal::_sc_detserialnumber_fkIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sc_detserialnumber_fkIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get sc_detserialnumber_fkIsValid():Boolean
    {
        if (!model_internal::_sc_detserialnumber_fkIsValidCacheInitialized)
        {
            model_internal::calculateSc_detserialnumber_fkIsValid();
        }

        return model_internal::_sc_detserialnumber_fkIsValid;
    }

    model_internal function calculateSc_detserialnumber_fkIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_sc_detserialnumber_fkValidator.validate(model_internal::_instance.sc_detserialnumber_fk)
        model_internal::_sc_detserialnumber_fkIsValid_der = (valRes.results == null);
        model_internal::_sc_detserialnumber_fkIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::sc_detserialnumber_fkValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::sc_detserialnumber_fkValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get sc_detserialnumber_fkValidationFailureMessages():Array
    {
        if (model_internal::_sc_detserialnumber_fkValidationFailureMessages == null)
            model_internal::calculateSc_detserialnumber_fkIsValid();

        return _sc_detserialnumber_fkValidationFailureMessages;
    }

    model_internal function set sc_detserialnumber_fkValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_sc_detserialnumber_fkValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_sc_detserialnumber_fkValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sc_detserialnumber_fkValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get activestatusStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get client_nameStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get client_nameValidator() : StyleValidator
    {
        return model_internal::_client_nameValidator;
    }

    model_internal function set _client_nameIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_client_nameIsValid;         
        if (oldValue !== value)
        {
            model_internal::_client_nameIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_nameIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get client_nameIsValid():Boolean
    {
        if (!model_internal::_client_nameIsValidCacheInitialized)
        {
            model_internal::calculateClient_nameIsValid();
        }

        return model_internal::_client_nameIsValid;
    }

    model_internal function calculateClient_nameIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_client_nameValidator.validate(model_internal::_instance.client_name)
        model_internal::_client_nameIsValid_der = (valRes.results == null);
        model_internal::_client_nameIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::client_nameValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::client_nameValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get client_nameValidationFailureMessages():Array
    {
        if (model_internal::_client_nameValidationFailureMessages == null)
            model_internal::calculateClient_nameIsValid();

        return _client_nameValidationFailureMessages;
    }

    model_internal function set client_nameValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_client_nameValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_client_nameValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_nameValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get po_detserialnumberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get po_detserialnumberValidator() : StyleValidator
    {
        return model_internal::_po_detserialnumberValidator;
    }

    model_internal function set _po_detserialnumberIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_po_detserialnumberIsValid;         
        if (oldValue !== value)
        {
            model_internal::_po_detserialnumberIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "po_detserialnumberIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get po_detserialnumberIsValid():Boolean
    {
        if (!model_internal::_po_detserialnumberIsValidCacheInitialized)
        {
            model_internal::calculatePo_detserialnumberIsValid();
        }

        return model_internal::_po_detserialnumberIsValid;
    }

    model_internal function calculatePo_detserialnumberIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_po_detserialnumberValidator.validate(model_internal::_instance.po_detserialnumber)
        model_internal::_po_detserialnumberIsValid_der = (valRes.results == null);
        model_internal::_po_detserialnumberIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::po_detserialnumberValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::po_detserialnumberValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get po_detserialnumberValidationFailureMessages():Array
    {
        if (model_internal::_po_detserialnumberValidationFailureMessages == null)
            model_internal::calculatePo_detserialnumberIsValid();

        return _po_detserialnumberValidationFailureMessages;
    }

    model_internal function set po_detserialnumberValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_po_detserialnumberValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_po_detserialnumberValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "po_detserialnumberValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get cre_datetimeStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get cre_datetimeValidator() : StyleValidator
    {
        return model_internal::_cre_datetimeValidator;
    }

    model_internal function set _cre_datetimeIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_cre_datetimeIsValid;         
        if (oldValue !== value)
        {
            model_internal::_cre_datetimeIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "cre_datetimeIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get cre_datetimeIsValid():Boolean
    {
        if (!model_internal::_cre_datetimeIsValidCacheInitialized)
        {
            model_internal::calculateCre_datetimeIsValid();
        }

        return model_internal::_cre_datetimeIsValid;
    }

    model_internal function calculateCre_datetimeIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_cre_datetimeValidator.validate(model_internal::_instance.cre_datetime)
        model_internal::_cre_datetimeIsValid_der = (valRes.results == null);
        model_internal::_cre_datetimeIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::cre_datetimeValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::cre_datetimeValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get cre_datetimeValidationFailureMessages():Array
    {
        if (model_internal::_cre_datetimeValidationFailureMessages == null)
            model_internal::calculateCre_datetimeIsValid();

        return _cre_datetimeValidationFailureMessages;
    }

    model_internal function set cre_datetimeValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_cre_datetimeValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_cre_datetimeValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "cre_datetimeValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get sc_qtyStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get sc_qtyValidator() : StyleValidator
    {
        return model_internal::_sc_qtyValidator;
    }

    model_internal function set _sc_qtyIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_sc_qtyIsValid;         
        if (oldValue !== value)
        {
            model_internal::_sc_qtyIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sc_qtyIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get sc_qtyIsValid():Boolean
    {
        if (!model_internal::_sc_qtyIsValidCacheInitialized)
        {
            model_internal::calculateSc_qtyIsValid();
        }

        return model_internal::_sc_qtyIsValid;
    }

    model_internal function calculateSc_qtyIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_sc_qtyValidator.validate(model_internal::_instance.sc_qty)
        model_internal::_sc_qtyIsValid_der = (valRes.results == null);
        model_internal::_sc_qtyIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::sc_qtyValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::sc_qtyValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get sc_qtyValidationFailureMessages():Array
    {
        if (model_internal::_sc_qtyValidationFailureMessages == null)
            model_internal::calculateSc_qtyIsValid();

        return _sc_qtyValidationFailureMessages;
    }

    model_internal function set sc_qtyValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_sc_qtyValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_sc_qtyValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sc_qtyValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get sc_serialnumberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get sc_serialnumberValidator() : StyleValidator
    {
        return model_internal::_sc_serialnumberValidator;
    }

    model_internal function set _sc_serialnumberIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_sc_serialnumberIsValid;         
        if (oldValue !== value)
        {
            model_internal::_sc_serialnumberIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sc_serialnumberIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get sc_serialnumberIsValid():Boolean
    {
        if (!model_internal::_sc_serialnumberIsValidCacheInitialized)
        {
            model_internal::calculateSc_serialnumberIsValid();
        }

        return model_internal::_sc_serialnumberIsValid;
    }

    model_internal function calculateSc_serialnumberIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_sc_serialnumberValidator.validate(model_internal::_instance.sc_serialnumber)
        model_internal::_sc_serialnumberIsValid_der = (valRes.results == null);
        model_internal::_sc_serialnumberIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::sc_serialnumberValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::sc_serialnumberValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get sc_serialnumberValidationFailureMessages():Array
    {
        if (model_internal::_sc_serialnumberValidationFailureMessages == null)
            model_internal::calculateSc_serialnumberIsValid();

        return _sc_serialnumberValidationFailureMessages;
    }

    model_internal function set sc_serialnumberValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_sc_serialnumberValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_sc_serialnumberValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sc_serialnumberValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get pro_serialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_serialnumber_fkValidator() : StyleValidator
    {
        return model_internal::_pro_serialnumber_fkValidator;
    }

    model_internal function set _pro_serialnumber_fkIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_serialnumber_fkIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_serialnumber_fkIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_serialnumber_fkIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_serialnumber_fkIsValid():Boolean
    {
        if (!model_internal::_pro_serialnumber_fkIsValidCacheInitialized)
        {
            model_internal::calculatePro_serialnumber_fkIsValid();
        }

        return model_internal::_pro_serialnumber_fkIsValid;
    }

    model_internal function calculatePro_serialnumber_fkIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_serialnumber_fkValidator.validate(model_internal::_instance.pro_serialnumber_fk)
        model_internal::_pro_serialnumber_fkIsValid_der = (valRes.results == null);
        model_internal::_pro_serialnumber_fkIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_serialnumber_fkValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_serialnumber_fkValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_serialnumber_fkValidationFailureMessages():Array
    {
        if (model_internal::_pro_serialnumber_fkValidationFailureMessages == null)
            model_internal::calculatePro_serialnumber_fkIsValid();

        return _pro_serialnumber_fkValidationFailureMessages;
    }

    model_internal function set pro_serialnumber_fkValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_serialnumber_fkValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_serialnumber_fkValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_serialnumber_fkValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get delivered_qtyStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get delivered_qtyValidator() : StyleValidator
    {
        return model_internal::_delivered_qtyValidator;
    }

    model_internal function set _delivered_qtyIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_delivered_qtyIsValid;         
        if (oldValue !== value)
        {
            model_internal::_delivered_qtyIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "delivered_qtyIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get delivered_qtyIsValid():Boolean
    {
        if (!model_internal::_delivered_qtyIsValidCacheInitialized)
        {
            model_internal::calculateDelivered_qtyIsValid();
        }

        return model_internal::_delivered_qtyIsValid;
    }

    model_internal function calculateDelivered_qtyIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_delivered_qtyValidator.validate(model_internal::_instance.delivered_qty)
        model_internal::_delivered_qtyIsValid_der = (valRes.results == null);
        model_internal::_delivered_qtyIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::delivered_qtyValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::delivered_qtyValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get delivered_qtyValidationFailureMessages():Array
    {
        if (model_internal::_delivered_qtyValidationFailureMessages == null)
            model_internal::calculateDelivered_qtyIsValid();

        return _delivered_qtyValidationFailureMessages;
    }

    model_internal function set delivered_qtyValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_delivered_qtyValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_delivered_qtyValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "delivered_qtyValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get reserved_qtyStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get reserved_qtyValidator() : StyleValidator
    {
        return model_internal::_reserved_qtyValidator;
    }

    model_internal function set _reserved_qtyIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_reserved_qtyIsValid;         
        if (oldValue !== value)
        {
            model_internal::_reserved_qtyIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "reserved_qtyIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get reserved_qtyIsValid():Boolean
    {
        if (!model_internal::_reserved_qtyIsValidCacheInitialized)
        {
            model_internal::calculateReserved_qtyIsValid();
        }

        return model_internal::_reserved_qtyIsValid;
    }

    model_internal function calculateReserved_qtyIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_reserved_qtyValidator.validate(model_internal::_instance.reserved_qty)
        model_internal::_reserved_qtyIsValid_der = (valRes.results == null);
        model_internal::_reserved_qtyIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::reserved_qtyValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::reserved_qtyValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get reserved_qtyValidationFailureMessages():Array
    {
        if (model_internal::_reserved_qtyValidationFailureMessages == null)
            model_internal::calculateReserved_qtyIsValid();

        return _reserved_qtyValidationFailureMessages;
    }

    model_internal function set reserved_qtyValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_reserved_qtyValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_reserved_qtyValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "reserved_qtyValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get delivery_order_codeStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get delivery_order_codeValidator() : StyleValidator
    {
        return model_internal::_delivery_order_codeValidator;
    }

    model_internal function set _delivery_order_codeIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_delivery_order_codeIsValid;         
        if (oldValue !== value)
        {
            model_internal::_delivery_order_codeIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "delivery_order_codeIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get delivery_order_codeIsValid():Boolean
    {
        if (!model_internal::_delivery_order_codeIsValidCacheInitialized)
        {
            model_internal::calculateDelivery_order_codeIsValid();
        }

        return model_internal::_delivery_order_codeIsValid;
    }

    model_internal function calculateDelivery_order_codeIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_delivery_order_codeValidator.validate(model_internal::_instance.delivery_order_code)
        model_internal::_delivery_order_codeIsValid_der = (valRes.results == null);
        model_internal::_delivery_order_codeIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::delivery_order_codeValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::delivery_order_codeValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get delivery_order_codeValidationFailureMessages():Array
    {
        if (model_internal::_delivery_order_codeValidationFailureMessages == null)
            model_internal::calculateDelivery_order_codeIsValid();

        return _delivery_order_codeValidationFailureMessages;
    }

    model_internal function set delivery_order_codeValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_delivery_order_codeValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_delivery_order_codeValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "delivery_order_codeValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get do_detserialnumberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get do_detserialnumberValidator() : StyleValidator
    {
        return model_internal::_do_detserialnumberValidator;
    }

    model_internal function set _do_detserialnumberIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_do_detserialnumberIsValid;         
        if (oldValue !== value)
        {
            model_internal::_do_detserialnumberIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "do_detserialnumberIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get do_detserialnumberIsValid():Boolean
    {
        if (!model_internal::_do_detserialnumberIsValidCacheInitialized)
        {
            model_internal::calculateDo_detserialnumberIsValid();
        }

        return model_internal::_do_detserialnumberIsValid;
    }

    model_internal function calculateDo_detserialnumberIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_do_detserialnumberValidator.validate(model_internal::_instance.do_detserialnumber)
        model_internal::_do_detserialnumberIsValid_der = (valRes.results == null);
        model_internal::_do_detserialnumberIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::do_detserialnumberValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::do_detserialnumberValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get do_detserialnumberValidationFailureMessages():Array
    {
        if (model_internal::_do_detserialnumberValidationFailureMessages == null)
            model_internal::calculateDo_detserialnumberIsValid();

        return _do_detserialnumberValidationFailureMessages;
    }

    model_internal function set do_detserialnumberValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_do_detserialnumberValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_do_detserialnumberValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "do_detserialnumberValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get sales_con_codeStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get sales_con_codeValidator() : StyleValidator
    {
        return model_internal::_sales_con_codeValidator;
    }

    model_internal function set _sales_con_codeIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_sales_con_codeIsValid;         
        if (oldValue !== value)
        {
            model_internal::_sales_con_codeIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sales_con_codeIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get sales_con_codeIsValid():Boolean
    {
        if (!model_internal::_sales_con_codeIsValidCacheInitialized)
        {
            model_internal::calculateSales_con_codeIsValid();
        }

        return model_internal::_sales_con_codeIsValid;
    }

    model_internal function calculateSales_con_codeIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_sales_con_codeValidator.validate(model_internal::_instance.sales_con_code)
        model_internal::_sales_con_codeIsValid_der = (valRes.results == null);
        model_internal::_sales_con_codeIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::sales_con_codeValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::sales_con_codeValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get sales_con_codeValidationFailureMessages():Array
    {
        if (model_internal::_sales_con_codeValidationFailureMessages == null)
            model_internal::calculateSales_con_codeIsValid();

        return _sales_con_codeValidationFailureMessages;
    }

    model_internal function set sales_con_codeValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_sales_con_codeValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_sales_con_codeValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sales_con_codeValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get customer_serialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get delivery_order_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get delivery_order_fkValidator() : StyleValidator
    {
        return model_internal::_delivery_order_fkValidator;
    }

    model_internal function set _delivery_order_fkIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_delivery_order_fkIsValid;         
        if (oldValue !== value)
        {
            model_internal::_delivery_order_fkIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "delivery_order_fkIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get delivery_order_fkIsValid():Boolean
    {
        if (!model_internal::_delivery_order_fkIsValidCacheInitialized)
        {
            model_internal::calculateDelivery_order_fkIsValid();
        }

        return model_internal::_delivery_order_fkIsValid;
    }

    model_internal function calculateDelivery_order_fkIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_delivery_order_fkValidator.validate(model_internal::_instance.delivery_order_fk)
        model_internal::_delivery_order_fkIsValid_der = (valRes.results == null);
        model_internal::_delivery_order_fkIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::delivery_order_fkValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::delivery_order_fkValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get delivery_order_fkValidationFailureMessages():Array
    {
        if (model_internal::_delivery_order_fkValidationFailureMessages == null)
            model_internal::calculateDelivery_order_fkIsValid();

        return _delivery_order_fkValidationFailureMessages;
    }

    model_internal function set delivery_order_fkValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_delivery_order_fkValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_delivery_order_fkValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "delivery_order_fkValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get warehouse_serialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get warehouse_serialnumber_fkValidator() : StyleValidator
    {
        return model_internal::_warehouse_serialnumber_fkValidator;
    }

    model_internal function set _warehouse_serialnumber_fkIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_warehouse_serialnumber_fkIsValid;         
        if (oldValue !== value)
        {
            model_internal::_warehouse_serialnumber_fkIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "warehouse_serialnumber_fkIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get warehouse_serialnumber_fkIsValid():Boolean
    {
        if (!model_internal::_warehouse_serialnumber_fkIsValidCacheInitialized)
        {
            model_internal::calculateWarehouse_serialnumber_fkIsValid();
        }

        return model_internal::_warehouse_serialnumber_fkIsValid;
    }

    model_internal function calculateWarehouse_serialnumber_fkIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_warehouse_serialnumber_fkValidator.validate(model_internal::_instance.warehouse_serialnumber_fk)
        model_internal::_warehouse_serialnumber_fkIsValid_der = (valRes.results == null);
        model_internal::_warehouse_serialnumber_fkIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::warehouse_serialnumber_fkValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::warehouse_serialnumber_fkValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get warehouse_serialnumber_fkValidationFailureMessages():Array
    {
        if (model_internal::_warehouse_serialnumber_fkValidationFailureMessages == null)
            model_internal::calculateWarehouse_serialnumber_fkIsValid();

        return _warehouse_serialnumber_fkValidationFailureMessages;
    }

    model_internal function set warehouse_serialnumber_fkValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_warehouse_serialnumber_fkValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_warehouse_serialnumber_fkValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "warehouse_serialnumber_fkValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }


     /**
     * 
     * @inheritDoc 
     */ 
     override public function getStyle(propertyName:String):com.adobe.fiber.styles.IStyle
     {
         switch(propertyName)
         {
            default:
            {
                return null;
            }
         }
     }
     
     /**
     * 
     * @inheritDoc 
     *  
     */  
     override public function getPropertyValidationFailureMessages(propertyName:String):Array
     {
         switch(propertyName)
         {
            case("pro_name"):
            {
                return pro_nameValidationFailureMessages;
            }
            case("part_number"):
            {
                return part_numberValidationFailureMessages;
            }
            case("delivery_order_date"):
            {
                return delivery_order_dateValidationFailureMessages;
            }
            case("pro_description"):
            {
                return pro_descriptionValidationFailureMessages;
            }
            case("do_remarks"):
            {
                return do_remarksValidationFailureMessages;
            }
            case("sc_detserialnumber_fk"):
            {
                return sc_detserialnumber_fkValidationFailureMessages;
            }
            case("client_name"):
            {
                return client_nameValidationFailureMessages;
            }
            case("po_detserialnumber"):
            {
                return po_detserialnumberValidationFailureMessages;
            }
            case("cre_datetime"):
            {
                return cre_datetimeValidationFailureMessages;
            }
            case("sc_qty"):
            {
                return sc_qtyValidationFailureMessages;
            }
            case("sc_serialnumber"):
            {
                return sc_serialnumberValidationFailureMessages;
            }
            case("pro_serialnumber_fk"):
            {
                return pro_serialnumber_fkValidationFailureMessages;
            }
            case("delivered_qty"):
            {
                return delivered_qtyValidationFailureMessages;
            }
            case("reserved_qty"):
            {
                return reserved_qtyValidationFailureMessages;
            }
            case("delivery_order_code"):
            {
                return delivery_order_codeValidationFailureMessages;
            }
            case("do_detserialnumber"):
            {
                return do_detserialnumberValidationFailureMessages;
            }
            case("sales_con_code"):
            {
                return sales_con_codeValidationFailureMessages;
            }
            case("delivery_order_fk"):
            {
                return delivery_order_fkValidationFailureMessages;
            }
            case("warehouse_serialnumber_fk"):
            {
                return warehouse_serialnumber_fkValidationFailureMessages;
            }
            default:
            {
                return emptyArray;
            }
         }
     }

}

}
